package com.travel.controller;

import com.qianfeng.util.ResultMsg;
import com.travel.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/city")
public class FontCityController {

    @Autowired
    CityService cityService;

    /**
     *
     * 查找所有城市
     * */
    @GetMapping("/getAll")
    public ResultMsg getAll(){
        return cityService.getAll();
    }


}
